package com.automannn.dubbo.withoutSpring;

import com.automannn.dubbo.api.HelloService;
import com.automannn.dubbo.api.TestAnotherService;
import com.automannn.dubbo.provider.HelloServiceImpl;
import com.automannn.dubbo.provider.TestAnotherServiceImpl;
import com.automannn.dubbo.withoutSpring.util.DubboUtils;

import java.util.Scanner;

/**
 * @author chenkh
 * @time 2021/7/26
 */
public class DubboRunWithoutSpringPracticeProvider {

    public static void main(String[] args) {
        //注册服务
        DubboUtils.registerService(HelloService.class,new HelloServiceImpl(),"dubbo-generic-automan-practice-provider","zookeeper://localhost:2181","practice");
        //注册另外一个服务
        DubboUtils.registerService(TestAnotherService.class,new TestAnotherServiceImpl(),"anotherApp","zookeeper://localhost:2181","practice");
        Scanner scanner = new Scanner(System.in);
        scanner.nextLine();
    }
}
